package com.sxyc.tintin.model;


import com.jfinal.plugin.activerecord.Model;

public class Person extends Model<Person> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2816643239270717701L;

	public static final Person dao = new Person();

	// 使用jFinal 日志
	private com.jfinal.log.Log log = com.jfinal.log.Log.getLog(this.getClass());

	public Person getUserByOpenId(String openId) {
		System.out.println("select * from person where openId = '"+openId+"'");
		return Person.dao.findFirst("select * from person where openId = '"+openId+"'");
	}
	public WxUser getIdByOpenId(String openId) {
		return WxUser.dao.findFirst("select * from wx_user where openId = '"+openId+"' ");
	}

}
